﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/Edit.master" AutoEventWireup="true"
    CodeBehind="GBusiEdit.aspx.cs" Inherits="MaluJg.web.Groups.GBusiEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" src="../Scripts/jquery.js"></script>

    <script>
        function check() {
            var valid = true;
            $("#SpYear").html("");
            $("#SpYuSuan").html("");
            $("#SpYsJe").html("");
            if ($.trim($("#<%=tbYear1.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYear").html("必填");
            }
            else {
                valid = /^\d{4}/.test($.trim($("#<%=tbYear1.ClientID %>").val()));
                if (!valid) {
                    $("#SpYear").html("年份有误");
                }
            }
            if ($.trim($("#<%=tbFamily.ClientID %>").val()) == '') {
                valid = false;
                $("#SpFamily").html("必填");
            }
            if ($.trim($("#<%=tbJe.ClientID %>").val()) == '') {
                valid = false;
                $("#SpJe").html("必填");
            }
            else {
                valid = /^\d+(\.\d+)?$/.test($.trim($("#<%=tbJe.ClientID %>").val()));
                if (!valid) {
                    $("#SpJe").html("金额必须为数字");
                }
            }
            return valid;
        }
        
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click">
                    <span><img src="../Images/Icon/Object/File-add.gif" /></span><span>添加</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Object/File-delete.gif" alt="关闭" /></span><span>关闭</span>
                </div>
            </td>           
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="commandTable" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr>
                    <td class="FieldName" width="130">
                        <span>&nbsp;组名：</span>
                    </td>
                    <td class="FieldInput" width="250">
                        <asp:TextBox ID="tbGroup" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox>
                        &nbsp; <span class="Alter">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            runat="server" ControlToValidate="tbGroup">必填</asp:RequiredFieldValidator>
                    </td>
                   
                </tr>
                
               
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;组务管理小组组成及村民代表联系户：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbComponent" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td> </tr>
                
               
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;集体资产租赁小组固定资产：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbPropertyRent" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;村民与集体经济往来财务收支及组长报酬：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbReward" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td> </tr>
                
               
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;计划生育及房屋翻建：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbHousing" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                
               
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;其他需要公开的事项：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbOthers" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="TitleBar" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr class="FTitle">
                    <td>
                        <div class="MainTitle">
                            低保户、困难补助对象和额度</div>                        
                    </td>
                    <td align="right">
                        <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                            <asp:LinkButton runat="server" ID="btnAdd" CausesValidation="false" OnClick="btnAdd_Click"
                                OnClientClick="return check()">
                        <span >
                            <img src="../Images/add.png" alt="单条添加" /></span><span>单条添加</span></asp:LinkButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        年度：<asp:TextBox ID="tbYear1" Width="100px" runat="server" CssClass="InputSmall"></asp:TextBox><span
                            class="Alter">*</span> <span id="SpYear" style="color: Red"></span>户名：<asp:TextBox
                                ID="tbFamily" Width="180px" runat="server" CssClass="InputSmall" MaxLength="50"></asp:TextBox><span
                                    class="Alter">*</span><span id="SpFamily" style="color: Red"></span>
                       金额：<asp:TextBox ID="tbJe" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox><span
                            class="Alter">*</span><span id="SpJe" style="color: Red"></span>
                        <asp:TextBox runat="server" ID="tbID1" style="display:none"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                <tr align="left">
                    <td width="30px">
                        &nbsp;
                    </td>
                    <td align="center" width="200">
                        年度
                    </td>
                    <td align="center">
                        户名
                    </td>
                    <td align="center" width="200">
                        金额
                    </td>
                    <td width="100px">
                        &nbsp;
                    </td>
                </tr>
                <asp:Repeater ID="rptItemList" runat="server" OnItemCommand="rptItemList_ItemCommand"
                    OnItemDataBound="rptItemList_ItemDataBound">
                    <ItemTemplate>
                        <tr id="TableRow1_<%# Container.ItemIndex%>">
                            <td align="center">
                                &nbsp;
                            </td>
                            <td align="center">
                                &nbsp;&nbsp;<%# DataBinder.Eval(Container.DataItem, "Year")%>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Name")%>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Amount")%>
                            </td>
                            <td align="center">
                                &nbsp;<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="Delete" OnClientClick="return confirm('确认删除？')" CausesValidation="false"><span><img src="../Images/Icon/Action/delete.gif" alt="删除" /></span></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit" CausesValidation="false"><span><img src="../Images/Icon/Action/edit.gif" alt="编辑" /></span></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
  
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DescriptionContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="server">
</asp:Content>
